<?php
/**
 * Created by PhpStorm.
 * Author: 芸签cms www.yunqiancms.com
 * User: sun
 * Date: 2022/7/2
 * Time: 3:10 PM
 */
namespace app\common\models;

class ArticleTag extends BaseModel
{
    public $table = 'yq_article_tag';

    public function tag()
    {
        return $this->hasOne(Tag::class, 'id', 'tag_id');
    }
    public function article()
    {
        return $this->hasOne(Article::class, 'id', 'article_id');
    }
}